import request from '@/config/request.js';

// 用户登录(账号+密码+验证码)
export const login = (params) => {
    const { username, password,loginType } = params;
    const url = `/admin/api/v1/login?username=${username}&password=${password}&loginType=${loginType}`;
    return request.post(url, {}, { custom: { auth: false } });
}
// 用户退出
export const logout = () => request.get('/admin/api/v1/logout')